﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;

namespace WebApplication1
{
    public partial class WebForm2 : System.Web.UI.Page
    {
        protected void Page_Load(object sender, EventArgs e)
        {
            string name = Request.QueryString["name"];
            string pwd = Request.QueryString["pwd"];

            string Name = Request.Form["TextBox1"];
            string Pwd = Request.Form["TextBox2"];
            if (Name=="")
            {
            Label1.Text = $"你的姓名是：{name}，你的密码是：{pwd}";
            } else
            {
            Label2.Text=$"你的姓名是：{Name}，你的密码是：{Pwd}";
            }
        }
    }
}